import request from '@/utils/request'

// 查询应付核销单列表
export function listPayrReconciliation(query) {
  return request({
    url: '/finance/payrReconciliation/list',
    method: 'get',
    params: query
  })
}

// 查询应付核销单详细
export function getPayrReconciliation(id) {
  return request({
    url: '/finance/payrReconciliation/' + id,
    method: 'get'
  })
}

// 新增应付核销单
export function addPayrReconciliation(data) {
  return request({
    url: '/finance/payrReconciliation',
    method: 'post',
    data: data
  })
}

// 修改应付核销单
export function updatePayrReconciliation(data) {
  return request({
    url: '/finance/payrReconciliation',
    method: 'put',
    data: data
  })
}

// 删除应付核销单
export function delPayrReconciliation(id) {
  return request({
    url: '/finance/payrReconciliation/' + id,
    method: 'delete'
  })
}
